<?php
/**
 * Created by PhpStorm.
 * User: zlkmu
 * Date: 2018/1/28
 * Time: 17:15
 */
require_once __DIR__ . '/../Protocols/ProtocolAPI.php';
require_once __DIR__ . '/../Protocols/GameType.php';
require_once __DIR__.'/../Channel/Client.php';
require_once __DIR__.'/../Channel/Server.php';
class NiuniuServer{
    public function processNiuniuRequest($router_msg){
        echo "处理牛牛消息\n";
        $clientID = $router_msg['clientID'];
        $clientMsg = $router_msg['clientMsg'];
        switch($clientMsg['head_request']){
            case ProtocolAPI::$CREATE_ROOM_REQUEST:
                echo "实际使用牛牛来创建房间\n";
                break;

            case ProtocolAPI::$LICENSING_RESPONSE:
                echo "牛牛测试2\n";
                break;


        }
    }
}



?>